const Mock = require('mockjs')

//模拟数据
module.exports = [
  {
    url: '/sections/ALL/zones',
    type: 'get',
    response: config => {
      // const items = data.items
      return {
        code: 20000,
        data: [
            {src: "static/img/general/img1.jpg"},
            {src: "static/img/general/img2.jpg"},
            {src: "static/img/general/img3.jpg"},
            {src: "static/img/general/img4.jpg"}
        ]
      }
    }
  },

  {
    url: '/sections/%E7%94%9F%E6%B4%BB/zones',
    type: 'get',
    response: config => {
      // const items = data.items
      return {
        code: 20000,
        data: [
            {src: "static/img/general/img5.jpg"},
            {src: "static/img/general/img6.jpg"},
            {src: "static/img/general/img7.jpg"},
            {src: "static/img/general/img8.jpg"}
        ]
      }
    }
  },
  
  {
    url: '/sections/%E8%87%AA%E7%84%B6/zones',
    type: 'get',
    response: config => {
      // const items = data.items
      return {
        code: 20000,
        data: [
            {src: "static/img/general/img9.jpg"},
            {src: "static/img/general/img10.jpg"},
            {src: "static/img/general/img11.jpg"},
            {src: "static/img/general/img12.jpg"}
        ]
      }
    }
  },

  {
    url: '/sections',
    type: 'get',
    response: config => {
      // const items = data.items
      return {
        code: 20000,
        data: [
          {name: "ALL"},
          {name: "生活"},
          {name: "自然"},
          {name: "娱乐"},
          {name: "体育"},
          {name: "工作"},
          {name: "更多"}
        ]
      }
    }
  }
  
]
